package com.ytjj.qmyx.supplychain.mapper;

import com.ytjj.qmyx.supplychain.common.model.request.CebOrderRequest;
import com.ytjj.qmyx.supplychain.common.model.response.CebOrderGoodsResponse;
import com.ytjj.qmyx.supplychain.common.model.response.CebOrderResponse;
import com.ytjj.qmyx.supplychain.mapper.entity.CebOrder;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

public interface CebOrderMapper extends Mapper<CebOrder> {
    public List<CebOrderResponse> queryCebOrderList(CebOrderRequest cebOrderRequest);
    public List<CebOrderGoodsResponse> queryCebOrderGoodsinfoList(Integer orderId);
    public CebOrderResponse findByOrderNo(String orderNo);
    public int updateSendStatus(String orderNo,Integer sendStatus, Date sendTime);
    public int updateCebOrderReturn(String orderNo,String returnStatus,String returnTime,String returnInfo);

    int updateCebOrder622Data(@Param("orderNo") String orderNo,
                              @Param("returnStatus") String returnStatus,
                              @Param("returnTime") String returnTime,
                              @Param("returnInfo") String returnInfo);
}